<div id="home_slider">
	<div>
		<div class="left"> 
			<img width="171" height="179" src="http://bxslider.com/sites/all/themes/bx/images/pic_velvet1.jpg">
		</div>
		<div class="right">Slide one content</div>
	</div>
	<div>
		<div class="left"> 
			<img width="171" height="179" src="http://bxslider.com/sites/all/themes/bx/images/pic_velvet1.jpg">
		</div>
		<div class="right">Slide two content</div>
	</div>
	<div>
		<div class="left"> 
			<img width="171" height="179" src="http://bxslider.com/sites/all/themes/bx/images/pic_velvet1.jpg">
		</div>
		<div class="right">Slide three content</div>
	</div>
	<div>
		<div class="left"> 
			<img width="171" height="179" src="http://bxslider.com/sites/all/themes/bx/images/pic_velvet1.jpg">
		</div>
		<div class="right">And so on...</div>
	</div>
</div>
<?php $categoryId = (int) $this->getRequest()->getParam('category_id'); ?>
<?php if($this->getArticles($categoryId)):?>
	<?php foreach($this->getArticles($categoryId) as $article):?>
	<div class="article-block">	
		<h1><a href="<?php echo Epic::getUrl('blog/article/view', array('id'=>$article['article_id']))?>"><?php echo $article['title'] ?></a></h1>
		<div class="postmeta-primary">
			<span class="meta-date"><?php echo $article['created_time'] ?></span>
			<span class="meta-comments">
				<a href="<?php echo Epic::getUrl('blog/article/view?id='.$article['article_id'].'#comments-block')?>"><?php echo $this->getNumComments($article['article_id']) ?> comment(s)</a>
			</span>
		</div>
		<div class="post-body clearfix">
			<div><?php echo nl2br($article['content_short']) ?></div>
			<div class="readmore">
				<a href="<?php echo Epic::getUrl('blog/article/view', array('id'=>$article['article_id']))?>">Read More</a>
			</div>
		</div>
	</div>
	<?php endforeach;?>
	
	<?php echo $this->renderPaginationHtml('blog/articles-pagination.phtml'); ?>
<?php else:?>
	<span style="color: blue;">Articles do not appear in this category</span>
<?php endif;?>